#include "stdafx.h"


Sprite::Sprite(HandBanana::Resources::Texture^ argTexture) : mTexture(argTexture), mX(0.0f), mY(0.0f), mWidth(0.0f), mHeight(0.0f), mColorModulationR(1.0f), mColorModulationG(1.0f), mColorModulationB(1.0f), mColorModulationA(1.0f)
{
}


float Sprite::X::get(void)
{
    return mX;
}


void Sprite::X::set(float value)
{
    mX = value;
}


float Sprite::Y::get(void)
{
    return mY;
}


void Sprite::Y::set(float value)
{
    mY = value;
}


float Sprite::Height::get(void)
{
    return mHeight;
}


void Sprite::Height::set(float value)
{
    mHeight = value;
}


float Sprite::Width::get(void)
{
    return mWidth;
}


void Sprite::Width::set(float value)
{
    mWidth = value;
}


int Sprite::Frame::get(void)
{
    return mFrame;
}


void Sprite::Frame::set(int value)
{
    mFrame = value;
}


D3DXCOLOR Sprite::ColorModulation::get(void)
{
    return D3DXCOLOR(mColorModulationR, mColorModulationG, mColorModulationB, mColorModulationA);
}


void Sprite::ColorModulation::set(D3DXCOLOR value)
{
    mColorModulationR = value.r;
    mColorModulationG = value.g;
    mColorModulationB = value.b;
    mColorModulationA = value.a;
}


//Coordinates::Location% Sprite::Location::get(void)
//{
//    return mLocation;
//}
//
//
//void Sprite::Location::set(Coordinates::Location% value)
//{
//    mLocation = value;
//}
//
//
//Coordinates::Size% Sprite::Size::get(void)
//{
//    return mSize;
//}
//
//
//void Sprite::Size::set(Coordinates::Size% value)
//{
//    mSize = value;
//}


Boolean Sprite::Visible::get(void)
{
    return mVisible;
}


void Sprite::Visible::set(Boolean value)
{
    mVisible = value;
}


float Sprite::Opacity::get(void)
{
    return mOpacity;
}


void Sprite::Opacity::set(float value)
{
    mOpacity = value;
}


HandBanana::Resources::Texture^ Sprite::Texture::get(void)
{
    return mTexture;
}